<%@page import="org.windblog.api.template.TemplateService"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="org.windblog.core.*"%>
<%@page import="org.windblog.core.entity.*"%>
<%@page import="java.util.*"%>
<div id="sidebar">
		<ul>
<!--			<li>-->
<!--				<?php get_search_form(); ?>-->
<!--			</li>-->

			<!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.-->
						
			<%
				if(WBQuery.is404() || WBQuery.isCategory() || WBQuery.isMonth() || 
						WBQuery.isYear() || WBQuery.isSearch() || WBQuery.isPage()) {
			%>
			<li>

			<% /* If this is a 404 page */ if (WBQuery.is404()) { %>
			<% /* If this is a category archive */ } else if (WBQuery.isCategory()) { %>
			<p>You are currently browsing the archives for the <%= WBQuery.getQueryVars().get("cat") %> category.</p>

			<% /* If this is a yearly archive */ } else if (WBQuery.isMonth()) { %>
			<p>You are currently browsing the <a href="<%=Bloginfo.getURL() %>"><%=Bloginfo.getName() %></a> blog archives
			for <%= WBQuery.getTime("MMMMM , yyyy") %>.</p>

			<% /* If this is a yearly archive */ } else if (WBQuery.isYear()) { %>
			<p>You are currently browsing the <a href="<%=Bloginfo.getURL() %>"><%=Bloginfo.getName() %></a> blog archives
			for the year <%= WBQuery.getTime("yyyy") %>.</p>

			<% /* If this is a monthly archive */ } else if (WBQuery.isSearch()) { %>
			<p>You have searched the <a href="<%=Bloginfo.getURL() %>"><%=Bloginfo.getName() %></a> blog archives
			for <strong>'<%=WBQuery.getQueryVars().get("s") %>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p>

			<% /* If this is a monthly archive */ } else if (WBQuery.isPage()) { %>
			<p>You are currently browsing the <a href="<%=Bloginfo.getURL() %>"><%=Bloginfo.getName() %></a> blog archives.</p>

			<% } %>

			</li> <% }%>


			<%=TemplateService.listPages("depth=0")%>


			<li><h2>Archives</h2>
				<ul>
				<%=TemplateService.getArchives("showPostCount=true")%>
				</ul>
			</li>


			<%=TemplateService.listCategories("showCount=true&hideEmpty=false&title=<h2>Categories</h2>")%>

			
			<%=TemplateService.listBookmarks("") %>

				<li><h2>Meta</h2>
				<ul>
					<li><a href="/admin">Site Admin</a></li>
					<li><a href="http://windblog.googlecode.com/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WindBlog</a></li>
				</ul>
				</li>
		</ul>
	</div>